package com.itheima;

/**
 * @author :wujunjie
 * createTime :2022-12-27 11:41
 * description :
 */
public class ThreadLocalUtil {
    private static ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void setId(String id) {
        threadLocal.set(id);
    }

    public static String getId() {
        return threadLocal.get();
    }

    public static void remove() {
        threadLocal.remove();
    }
}
